package psn.zjk.common.domain;

import java.util.List;

public class SchoolClass {
    private List<User> users;
    private List<Teacher> teachers;
    private ClassInfo info=new ClassInfo();

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
        info.setUserNum(users.size());
    }

    public List<Teacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(List<Teacher> teachers) {
        this.teachers = teachers;
        info.setTeacherNum(teachers.size());
    }

    public ClassInfo getInfo() {
        return info;
    }

    public void setInfo(ClassInfo info) {
        this.info = info;
    }
}
